class treasureChest: 
    #Private question : String 
    #Private answer : Integer 
    #Private points : Integer 
    def __init__(self, questionP, answerP, pointsP): 
        self.__question = questionP 
        self.__answer = answerP 
        self.__points = points

# arrayTreasure(5) as treasureChest 
def readData(): 
	 filename = "treasureChestData.txt" 
	 try: 
		 file= open(filename,"r") 
		 dataFetched = (file.readline()).strip() 
		 while(dataFetched != "" ): 
			 question = dataFetched 
			 answer = (file.readline()).strip()
			 points = (file.readline()).strip() 
			 arrayTreasure.append(treasureChest(question, answer, points)) 
			 dataFetched = (file.readline()).strip() 
		 file.close() 
	 except IOError: 
		print("Could not find file")